package com.wkbb.common.enums;

/**
 * 组织类型枚举
 *
 * @author Lilin
 */
public enum OrgGradeTypeEnum {

    KINDERGARTEN(1, "幼儿园"),
    PRIMARY_SCHOOL(2, "小学"),
    SECONDARY_SCHOOL(3, "中职"),
    MIDDLE_SCHOOL(4, "初中"),
    HIGH_SCHOOL(5, "高中"),
    VOCATIONAL_SCHOOL(6, "高职"),
    UNIVERSITY(7, "本科"),
    SIX_CONSISTENCY_SCHOOL(8, "完中"),
    NINE_CONSISTENCY_SCHOOL(9, "九年一贯"),
    TWELVE_CONSISTENCY_SCHOOL(10, "十二年一贯");

    private OrgGradeTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public static String getDesc(Integer value) {
        for (OrgGradeTypeEnum organizationType : OrgGradeTypeEnum.values()) {
            if (organizationType.getValue().intValue() == value) {
                return organizationType.getDesc();
            }
        }
        return null;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
